﻿@using MudBlazor.Interfaces 
@implements INavigationEventReceiver
@namespace MudBlazor.UnitTests.TestComponents

<CascadingValue Value="this" IsFixed="true">
    <MudNavLink Disabled="@Disabled" />
</CascadingValue>

@code {
    [Parameter]
    public bool Disabled { get; set; }

    public bool IsNavigated { get; private set; }

    public Task OnNavigation()
    {
        IsNavigated = true;
        return Task.CompletedTask;
    }
}
